package com.driver.system.service;


import com.driver.system.db.pojo.MessageEntity;
import com.driver.system.db.pojo.MessageRefEntity;

import java.util.HashMap;

public interface MessageService {
    String insertMessage(MessageEntity entity);

    HashMap searchMessageById(String id);

    String insertRef(MessageRefEntity entity);

    long searchUnreadCount(long userId, String identity);

    long searchLastCount(long userId, String identity);

    long updateUnreadMessage(String id);

    long deleteMessageRefById(String id);

    long deleteUserMessageRef(long userId, String identity);
}
